package com.gome.ss.core.plugin;

import com.gome.ss.core.schedule.ScheduleCore;
import com.gome.ss.core.schedule.ScheduleManager;


public class Plugin {
	private SpiderPluginHandle handle;
	private PluginTaskProcess taskProcess = null;
	private int maxThreadCount = 10;
	
	private Boolean isLocalPlugin = false;
	
	public Plugin(SpiderPluginHandle handle) {
		this.handle = handle;
		if (handle.processable()) {
			taskProcess = new PluginTaskProcess(handle);
		}
	}

	public SpiderPluginHandle getHandle() {
		return handle;
	}

	public PluginTaskProcess getTaskProcess() {
		return taskProcess;
	}

	public void setIsLocalPlugin() {
		this.isLocalPlugin = true;
	}
	
	public boolean isLocalPlugin() {
		return isLocalPlugin;
	}

	public int getMaxThreadCount() {
		return maxThreadCount;
	}

	public void setMaxThreadCount(int maxThreadCount) {
		this.maxThreadCount = maxThreadCount;
	}
}
